package cn.tedu.spring.di;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/*
测试类
 */
public class TestUserDao {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext("cn.tedu.spring.di");
//        UserDao userDao= context.getBean(UserDao.class);
        UserService userService=context.getBean(UserService.class);
        System.out.println("userDao="+userService);

    }
}
